package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 *
 */
@TableName("Z_category")
@ApiModel(value="Z_category对象", description="")
public class Category implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "分类id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "分类名称")
    private String name;

    private String front_desc;

    @ApiModelProperty(value = "父分类")
    private Integer parent_id;

    private Boolean show_index;

    @ApiModelProperty(value = "是否展示")
    private Integer is_show;

    @ApiModelProperty(value = "商家图片")
    private String banner_url;

    @ApiModelProperty(value = "分类小图标")
    private String icon_url;

    @ApiModelProperty(value = "分类图片")
    private String img_url;

    private String wap_banner_url;

    @ApiModelProperty(value = "等级（L1,L2）")
    private String level;

    @ApiModelProperty(value = "文字描述")
    private String front_name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFront_desc() {
        return front_desc;
    }

    public void setFront_desc(String front_desc) {
        this.front_desc = front_desc;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public Boolean getShow_index() {
        return show_index;
    }

    public void setShow_index(Boolean show_index) {
        this.show_index = show_index;
    }

    public Integer getIs_show() {
        return is_show;
    }

    public void setIs_show(Integer is_show) {
        this.is_show = is_show;
    }

    public String getBanner_url() {
        return banner_url;
    }

    public void setBanner_url(String banner_url) {
        this.banner_url = banner_url;
    }

    public String getIcon_url() {
        return icon_url;
    }

    public void setIcon_url(String icon_url) {
        this.icon_url = icon_url;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public String getWap_banner_url() {
        return wap_banner_url;
    }

    public void setWap_banner_url(String wap_banner_url) {
        this.wap_banner_url = wap_banner_url;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getFront_name() {
        return front_name;
    }

    public void setFront_name(String front_name) {
        this.front_name = front_name;
    }

    @Override
    public String toString() {
        return "Z_category{" +
        "id=" + id +
        ", name=" + name +
        ", front_desc=" + front_desc +
        ", parent_id=" + parent_id +
        ", show_index=" + show_index +
        ", is_show=" + is_show +
        ", banner_url=" + banner_url +
        ", icon_url=" + icon_url +
        ", img_url=" + img_url +
        ", wap_banner_url=" + wap_banner_url +
        ", level=" + level +
        ", front_name=" + front_name +
        "}";
    }
}
